package com.centaur0.servletlistener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.centaur0.util.Application;

public class ContextListenerImpl implements ServletContextListener {

	public void contextDestroyed(ServletContextEvent evt) {}

	public void contextInitialized(ServletContextEvent evt) {
		try {
			System.out.println("contextInitialized");
			Application.setHttpApplicationContext(evt.getServletContext());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
